/* eslint-disable */
import {
    axios
} from '@/utils/request';
const api = {
    userEvaluate: '/share-parking/web/evaluate/userEvaluate',//用户评价
    startPay:"/share-parking/parking/app/startPay", //待支付订单发起支付
    cancelApply:"/share-parking/web/personCenter/cancelApply", //申请退租
    cancelReply:"/share-parking/web/personCenter/cancelReply", //退租申请回复（同意|拒绝）
    myCarOrderLog: "/share-parking/web/personCenter/myCarOrderLog", //我的订单列表查询（车主|车位主）
    call: "/share-parking/web/personCenter/call", //联系客服
    plateNoModify:"/share-parking/web/personCenter/plateNoModify", //订单车牌号修改
    setLog:"/share-parking/EventTracking/setLog", //页面埋点


}
export default api
export function userEvaluate(parameter) {
    return axios({
        url: api.userEvaluate,
        data: parameter,
        method: 'POST'
    })
}
export function startPay(parameter) {
    return axios({
        url: api.startPay,
        params: parameter,
        method: 'POST'
    })
}

export function cancelApply(parameter) {
    return axios({
        url: api.cancelApply,
        params: parameter,
        method: 'get'
    })
}

export function cancelReply(parameter) {
    return axios({
        url: api.cancelReply,
        params: parameter,
        method: 'get'
    })
}

export function myCarOrderLog(parameter) {
    return axios({
        url: api.myCarOrderLog,
        data: parameter,
        method: 'post'
    })
}
export function call(parameter) {
    return axios({
        url: api.call,
        params: parameter,
        method: 'get'
    })
}

export function plateNoModify(parameter) {
    return axios({
        url: api.plateNoModify,
        params: parameter,
        method: 'get'
    })
}

export function setLog(parameter) {
    //application/x-www-form-urlencoded
    return axios({
        url: api.setLog,
        params: parameter,
        method: 'post'
    })
}